<?php
class Category_Model extends MY_Model {
	function __construct(){
		parent::__construct();
		$this->_prefix = "cat";
		$this->_column = array(
													'id'		=>$this->_prefix."_id",
													'tag_id'	=>$this->_prefix."_tag_id",
													'sort'	=>$this->_prefix."_sort",
													'parent_id'	=>$this->_prefix."_parent_id"
		);
		$this->_join_column = array(
																"name" => "tag_name",
																"url" => "tag_url"
		);
	}

  function get($options = NULL){
    $this->db->join("ci_tag","ci_tag.tag_id = ci_category.cat_tag_id");
    $mainTable = parent::get($options);
    return $mainTable;
  }

}

?>